How to compute linear regression using ordinary least square in python